/*
 * iniconfig.h
 *
 *  Created on: 2012-05-23
 *      Author: Aco
 */

#ifndef INICONFIG_H_
#define INICONFIG_H_

// Stavke INI-ja kao vezana lista
typedef struct _ininode
{
	struct _ininode * next;

	char group[64];
	char key[64];
	char value[192];
} ININode;

ININode * ini_parseFile(const char * fileName);
const char * ini_getString(ININode * node, const char * path, const char * def);
int ini_getInt(ININode * node, const char * path, int def);
void ini_destroy(ININode * node);

void ini_rtrim(char * txt);

#endif /* INICONFIG_H_ */
